package org.tgcloud.group.core.aliyun.oss;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: zhy
 * @Created: 2025-03-04-上午11:43
 * @Description:
 */
@Configuration
public class OSSConfig {

    private String endpoint = "https://oss-cn-beijing.aliyuncs.com";

    private String accessKeyId = "LTAI5tK1fEw5zjE8VMtwnH4F";

    private String accessKeySecret = "Cfit5DhO5ciw7qaUYPs969uZ717ggs";

    @Bean
    public OSS ossClient() {
        return new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);
    }
}
